//#include"process.h"
#include<stdio.h>
#include<string.h>
#include <windows.h>

#define SIZE 101
#define TYTLE '#'

void process1()
{
      char str[SIZE];
         memset(str, 0, sizeof(str));
         const char* t = "|/-\\";
         int sum = 0;
         int size = strlen(t);
         while (sum <= 100)
            {
                
                printf("[%-100s][%d%%][%c]\r", str, sum, t[sum % size]);
                str[sum] = TYTLE;
              sum++;
                fflush(stdout);
               Sleep(100);
        
                 }
         printf("\n");
        
        
    }




int main()
{

    
    process1();
    return 0;
}